@extends('backend.assets.master')

@section('page-title', "文章列表")

@section('page-content')
<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<!-- BEGIN PAGE CONTAINER-->
<div class="container-fluid">
    <!-- BEGIN PAGE HEADER-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN PAGE TITLE & BREADCRUMB-->
            <h3 class="page-title">
                Blank Page <small>blank page</small>
            </h3>
            <ul class="breadcrumb">
                <li>
                    <i class="icon-home"></i>
                    <a href="index.html">Home</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li>
                    <a href="#">Layouts</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li><a href="#">Blank Page</a></li>
            </ul>
            <!-- END PAGE TITLE & BREADCRUMB-->
        </div>
    </div>
    <!-- END PAGE HEADER-->
    <!-- BEGIN PAGE CONTENT-->
    <div class="row-fluid">
        <div class="col-md-12">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th class="span4">标题</th>
                    <th>作者</th>
                    <th>分类目录</th>
                    <th>标签</th>
                    <th>评论</th>
                    <th>日期</th>
                </tr>
                </thead>
                <tbody>
                @foreach($articles as $article)
                <tr>
                    <td>{{ $article->post_title }}</td>
                    <td>{{ $article->hasOneUser->name }}</td>
                    <td>{{ $article->post_status }}</td>
                    <td>{{ $article->comment_status }}</td>
                    <td>{{ $article->comment_count }}</td>
                    <td>{{ $article->published_at }}</td>
                </tr>
                @endforeach
                </tbody>
            </table>
            {!! $articles->render() !!}
        </div>
    </div>
    <!-- END PAGE CONTENT-->
</div>
<!-- END PAGE CONTAINER-->
@stop
